package com.wm.eduService.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wm.eduService.entity.EduComment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wm.eduService.entity.EduCourse;
import com.wm.eduService.entity.vo.CourseFrontQuery;

import java.util.Map;

/**
 * <p>
 * 评论 服务类
 * </p>
 *
 * @author sshdg
 * @since 2020-10-12
 */
public interface EduCommentService extends IService<EduComment> {
    /**
     * 分页查询某个课程的所有评论
     * @param commentPage 分页对象
     * @param courseId 课程id
     * @return
     */
    Map<String, Object> pageComment(Page<EduComment> commentPage, String courseId);
}
